<div class="panel-body region-goods row">
    <div class="col-md-2 region-goods-left">
        <div class="region-inner">基本信息</div>
    </div>
    <div class="col-md-10 region-goods-right">
        <div class="form-group row">
            <label class="col-sm control-label must">商品名称</label>
            <div class="col-md-10">
                <div class="col-sm-7" style="padding:0;">
                    <input type="text" name="goodsname" id="goodsname" class="form-control" value="{$item['title']}" data-rule-required="true"/>
                </div>
                <div class="col-sm-2" style="padding-left:5px">
                    <input type="text" name="unit" id="unit" class="form-control" value="{$item['unit']}" placeholder="单位, 如: 个/件/包"/>
                </div>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm control-label">副标题</label>
            <div class="col-sm-8 subtitle">
                <input type="text" name="subtitle" class="form-control" value="{$item['subtitle']}" data-rule-required="false"/>
                <div class="help-block">副标题的长度请控制在100字以内</div>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm control-label">关键字</label>
            <div class="col-sm-8">
                <input type="text" name="keywords" class="form-control" value="{$item['keywords']}"/>
                <div class="help-block">商品关键字,能准确搜到商品的,比如 : 文玩|书法|国画 之类的</div>
            </div>
        </div>

        <div class="form-group row">
            <label class="col-sm control-label">商品分类</label>
            <div class="col-md-10">
                <select id="cates" name='cates[]' class="form-control select2" style='width:605px;' multiple=''>
                    {foreach $category as $key => $c}
                    <option value="{$c['id']}" {if is_array($cates) && in_array($c['id'],$cates)}selected{/if} >{$c['name']}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="form-group row">
            <label class="col-sm control-label must">商品主图</label>
            <div class="col-md-9">
                {:tpl_form_field_image('thumb',$item['thumb'])}
                <span class="help-block">商品主图就是列表中用户看到的图片</span>
            </div>
        </div>

        <div class="form-group row">
            <label class="col-sm control-label"></label>
            <div class="col-md-10">
                <label class="checkbox-inline"><input type="checkbox" name="thumb_first" value="1" {if $item['thumb_first'] == 1}checked="true"{/if}/> 详情显示首图</label>
                <span class="help-block"></span>
            </div>
        </div>

        <div class="form-group row">
            <label class="col-sm control-label">商品附图</label>
            <div class="col-md-9 gimgs">
                {:tpl_form_field_multi_image('thumbs',$picList)}
                <span class="help-block image-block">建议为正方型图片，商品详情页中展示的其他图片，保持图片大小一致</span>
                <span class="help-block">您可以拖动图片改变其显示顺序 </span>
            </div>
        </div>

        <div class="form-group row">
            <label class="col-sm control-label">商品属性</label>
            <div class="col-md-10">
                <label for="isrecommand" class="checkbox-inline">
                    <input type="checkbox" name="isrecommand" value="1" id="isrecommand" {if $item['isrecommand'] == 1}checked="true"{/if}/> 推荐
                </label>
                <label for="isnew" class="checkbox-inline">
                    <input type="checkbox" name="isnew" value="1" id="isnew" {if $item['isnew'] == 1}checked="true"{/if}/> 新品
                </label>
                <label for="ishot" class="checkbox-inline">
                    <input type="checkbox" name="ishot" value="1" id="ishot" {if $item['ishot'] == 1}checked="true"{/if}/> 热卖
                </label>

                <label for="issendfree" class="checkbox-inline">
                    <input type="checkbox" name="issendfree" value="1" id="issendfree" {if $item['issendfree'] == 1}checked="true"{/if}/> 包邮
                </label>

                <span class="help-block">有助于商品的排序和展示 </span>
            </div>
        </div>

    </div>
</div>

<div class="panel-body region-goods row">
    <div class="col-md-2 region-goods-left">
        <div class="region-inner">商品信息</div>
    </div>
    <div class="col-md-10 region-goods-right ">

        <div class="form-group row goodsPrice">
            <label class="col-sm control-label must">商品价格</label>
            <div class="col-md-6">
                <div class="input-group">
                    <span class="input-group-addon">售价</span>
                    <input type="text" name="marketprice" id="marketprice" class="form-control" value="{$item['marketprice']}" data-rule-required="true"/>
                    <span class="input-group-addon">元 原价</span>
                    <input type="text" name="originalprice" id="originalprice" class="form-control" value="{$item['originalprice']}"/>
                    <span class="input-group-addon">元</span>
                </div>
                <span class='help-block'>尽量填写完整，有助于于商品销售的数据分析</span>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm control-label">上架</label>
            <div class="col-sm-10">
                <label class="radio-inline"><input type="radio" name="status" value="0" {if empty($item['status'])}checked="true"{/if} /> 否</label>
                <label class="radio-inline"><input type="radio" name="status" value="1" {if $item['status'] == 1}checked="true"{/if}/> 上架</label>
            </div>
        </div>

    </div>
</div>